package org.scaffold.utils;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class LogUtils {
    private static final Log log = LogFactory.getLog(LogUtils.class);

    public static void info(String msg, Object... args) {
        System.out.println(String.format(msg, args));
    }

    public static void info(String msg) {
        System.out.println(msg);
    }

    public static void error(String msg, Exception e) {
        log.error(msg, e);
    }

    public static void error(String msg, Exception e, Object... args) {
        log.error(String.format(msg, args), e);
    }

}
